package com.imooc.mall.service;

import com.imooc.mall.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.mall.exception.ImoocMallException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhaoJianHui
 * @since 2025-05-07
 */
public interface IUserService extends IService<User> {
    User register(String userName, String password) throws ImoocMallException;

    User login(String userName, String password) throws ImoocMallException;

    void updateInfo(User user) throws ImoocMallException;

    boolean isAdmin(User user);
}
